package com.coderxq.blog.web.service.user;

import com.coderxq.blog.web.entity.dto.InsertUsersParam;
import com.coderxq.blog.web.entity.dto.UserRoleParam;
import com.coderxq.blog.web.entity.pojo.User;
import com.coderxq.blog.web.entity.pojo.UserRoleMenu;
import com.coderxq.blog.web.entity.vo.UserInfo;
import com.github.pagehelper.PageInfo;

import java.util.ArrayList;

public interface UserService {
    Integer insertUser(User user);

    Integer insertUsers(ArrayList<User> user);

    void updateUser(UserInfo userinfo);

    UserInfo getUserByAccount(String account);

    PageInfo<User> getAllUser(int pageNum, int pageSize);

    Integer insertUserRole(UserRoleParam insertUsersParam);

    UserRoleMenu getUserRoleMenu(String userId);

    UserInfo getUserByUserId(String userId);
}
